<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
<script type="text/javascript">
	const obj={
		name:"小米10",
		num:100,
		weight:"0.55kg",
		objaddress:"中国大陆"
	}

	for( const key in obj ){
		console.log(key)//属性名
		console.log(obj[key])//属性值
	}
</script>
</body>
</html>